﻿using SL8.SL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace XingZhe.Entities
{
        public class trackpoint : ObservableObject
        {
                public int Id
                {
                        get
                        {
                                return this.GetCacheValue(o => o.Id, default(int));
                        }
                        set
                        {
                                this.SetCacheValue(o => o.Id, value);
                        }
                }

                public int workout_id
                {
                        get
                        {
                                return this.GetCacheValue(o => o.workout_id, default(int));
                        }
                        set
                        {
                                this.SetCacheValue(o => o.workout_id, value);
                        }
                }

                public int accuracy
                {
                        get
                        {
                                return this.GetCacheValue(o => o.accuracy, default(int));
                        }
                        set
                        {
                                this.SetCacheValue(o => o.accuracy, value);
                        }
                }

                public int altitude
                {
                        get
                        {
                                return this.GetCacheValue(o => o.altitude, default(int));
                        }
                        set
                        {
                                this.SetCacheValue(o => o.altitude, value);
                        }
                }

                public int bearing
                {
                        get
                        {
                                return this.GetCacheValue(o => o.bearing, default(int));
                        }
                        set
                        {
                                this.SetCacheValue(o => o.bearing, value);
                        }
                }

                public int latitude
                {
                        get
                        {
                                return this.GetCacheValue(o => o.latitude, default(int));
                        }
                        set
                        {
                                this.SetCacheValue(o => o.latitude, value);
                        }
                }

                public int longitude
                {
                        get
                        {
                                return this.GetCacheValue(o => o.longitude, default(int));
                        }
                        set
                        {
                                this.SetCacheValue(o => o.longitude, value);
                        }
                }

                public int speed
                {
                        get
                        {
                                return this.GetCacheValue(o => o.speed, default(int));
                        }
                        set
                        {
                                this.SetCacheValue(o => o.speed, value);
                        }
                }

                public int time
                {
                        get
                        {
                                return this.GetCacheValue(o => o.time, default(int));
                        }
                        set
                        {
                                this.SetCacheValue(o => o.time, value);
                        }
                }
        }
}
